class Station{
    id: string;
    #name: string;
    // #name: string;
    type: string;
    constructor(id:string, name:string, type?:string){
        this.id = id;
        this.#name = name;
        // this.#name = name;
        this.type = type;
    }

    get name():string{
        return this.#name
        // return this.#name
    }

    set name(name:string){
        this.#name = name
    }
    
}

let station = new Station('001', '站点01');
console.log(station);
console.log(station.id);
station.name = '站点002';
console.log(station.name);

console.log(station.type);

